Skip to content

ci: split the workflow into lint, test and build jobs - #21

Merged
amannocci merged 2 commits into
mainfrom
ci/split-jobs
Nov 27, 2026
Merged

amannocci merged 2 commits into
mainfrom
ci/split-jobs

Conversation

@amannocci

Copy link
Copy Markdown
Member

🧑‍💻What is the change being made?

  • Split the CI workflow's single job into three chained jobs:
    • lint: ubuntu, uv run poe lint.
    • test (needs: lint): ubuntu/macOS/Windows x Python 3.12 to 3.15, uv run poe test.
    • build (needs: test): ubuntu/Python 3.12, uv build, uploads the dist artifact.
  • Remove the poe ci task and point CONTRIBUTING.md at poe lint and poe test.

❓ Why is the change being made?

Lint ran on all 12 matrix jobs although its result doesn't depend on the OS or Python version, and
the package was built 12 times for a single upload. Separate jobs show which stage failed, and the
chain stops early: a lint error skips the test matrix, a test failure skips the build. The release
workflow calls ci.yml, so dist is still only published after lint and tests pass. With CI no
longer using poe ci, the task only duplicated lint + test.

✅ How has this been tested?

By the CI run of this pull request. uv run poe --help lists the remaining tasks.

📚 How has this been documented?

CONTRIBUTING.md lists the commands to run before opening a pull request.

🔗 Related Issues

None.

Lint runs once on ubuntu, tests run on the OS x Python matrix and the
distribution is built once, chained with needs so a failing stage stops
the next ones.
The workflow no longer runs it; contributors run lint and test directly.
@amannocci amannocci self-assigned this Nov 27, 2026
@amannocci
amannocci merged commit f1b9c99 into main Nov 27, 2026
16 checks passed
@amannocci
amannocci deleted the ci/split-jobs branch November 27, 2026 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant